package cn.gson.boot.model.service;

import cn.gson.boot.model.dao.HebingDao;
import cn.gson.boot.model.mapper.HebingMapper;
import cn.gson.boot.model.pojos.Hebing;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class HebingService {
    @Autowired
    HebingMapper hebingMapper;

    @Autowired
    HebingDao hebingDao;

    public List<Hebing> allHebings(){
        return hebingMapper.allHebings();
    }
}
